<include file="Public:pagerForm" />
<script type="text/javascript">
function reload19() {
    navTab.reload("__URL__", {});
}
function accessorydbltable(target,rel){
    if( target == 'sid_accessory'){
    $.pdialog.open("__URL__/read/id/"+rel+"/sid_accessory="+rel,"pdialogid", "查看", { max:false, mask:true, width: 500, height: 210});
    } 
  }
</script>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>辅料名称：</label>
				<input type="text" name="name" class="medium" value="{$name}" >
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="dialog" mask="true" width="500" height="320"><span>辅料新增</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/navTabId/__MODULE__" target="selectedTodo"  title="你确定要删除吗？"  postType="string" rel="ids"  warn="请选择信息"><span>删除</span></a></li>
			<li><a class="edit" href="__URL__/edit/id/{sid_accessory}" target="dialog" mask="true" warn="请选择信息" width="500" height="320"><span>修改</span></a></li>
			<li><a class="add" href="__URL__/ainput/id/{sid_accessory}" target="dialog" mask="true" warn="请选择信息" width="500" height="250"><span>辅料入库</span></a></li>
			<!-- <li><a class="edit" href="__URL__/checkinput/id/{sid_accessory}" target="dialog" mask="true" warn="请选择信息"><span>入库查询</span></a></li> -->
			<li><a class="add" href="__URL__/aoutput/id/{sid_accessory}" target="dialog" mask="true" warn="请选择信息" width="500" height="250"><span>辅料出库</span></a></li>
			<!-- <li><a class="edit" href="__URL__/checkoutput/id/{sid_accessory}" target="dialog" mask="true" warn="请选择信息"><span>出库查询</span></a></li> -->
			<li><a class="edit" href="__URL__/check/id/{sid_accessory}" target="dialog" mask="true" warn="请选择信息"><span>辅料出入库查询</span></a></li>
			<li><a class="icon" href="__URL__/export/accname/{$name}" target="dwzExport" targetType="navTab" title="确实要导出这些记录吗?"><span>导出出入库记录</span></a></li>
			<li><a class="icon" href="#" onclick="reload19()"><span>刷新</span></a></li>
		</ul>
	</div>


	<table class="table" width="100%" layoutH="136">
		<thead>
		<tr>
		    <th width="20" align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>	
			<th width="100" align="center">辅料名称</th>
			<th width="100" align="center">规格</th>
			<th width="100" align="center">余量(吨)</th>
			<th width="100" align="center">入库地址</th>
			<th width="100" align="center">产地</th>
			<th width="140" align="center">用途</th>
			<th width="100" align="center">备注</th>
			<th width="100" align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		  <volist name="list" id="vo">
			<tr target="sid_accessory" rel="{$vo.id}" ondblclick="accessorydbltable('sid_accessory',{$vo.id})">
			    <td><input type="checkbox" name="ids" value="{$vo.id}" /></td> 
				<td>{$vo.name}</td>
				<td>{$vo.standard}</td>
				<td>{$vo.weight}</td>
				<td><eq name="vo.storeplace" value="storeA">东明库</eq><eq name="vo.storeplace" value="storeB">南曹库</eq><eq name="vo.storeplace" value="storeC">金海库</eq></td>
				<td>{$vo.parea}</td>
				<td>{$vo.usage}</td>
				<td>{$vo.note}</td>		
				<td><a class="delete" href="__URL__/foreverdelete/ids/{$vo['id']}/navTabId/__MODULE__" target="ajaxTodo" calback="navTabAjaxMenu" title="你确定要删除吗？"><span>删除</span></a>
				|&nbsp;<a href="__URL__/edit/id/{$vo['id']}" target="dialog" mask="true" width="520" height="310">编辑</a></td>
			</tr>	
		  </volist>		
		</tbody>	  
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>每页</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>
</div>

		